/* 头部样式 */
.header {
    height: 80px;
    background: #fff;
    border-bottom: 2px solid #e1251b;
}

.header .container {
    display: flex;
    align-items: center;
    height: 100%;
}

.page-title {
    font-size: 20px;
    font-weight: bold;
    margin-left: 50px;
}

/* 主要内容 */
.main {
    padding: 20px 0;
    background: #f5f5f5;
    min-height: calc(100vh - 162px);
}

/* 购物车头部 */
.cart-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* 列宽设置 */
.col-product {
    flex: 1;
    margin-left: 100px;
}

.col-price,
.col-count,
.col-total,
.col-action {
    width: 120px;
    text-align: center;
}

/* 复选框样式 */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    margin-right: 5px;
}

/* 购物车列表 */
.cart-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #fff;
    margin-bottom: 20px;
    border-radius: 4px;
}

.cart-item .product-img {
    width: 80px;
    height: 80px;
    margin: 0 20px;
}

.cart-item .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item .product-info {
    flex: 1;
}

.cart-item .product-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.cart-item .product-spec {
    font-size: 12px;
    color: #999;
}

.cart-item .price,
.cart-item .total {
    width: 120px;
    text-align: center;
    color: #e1251b;
    font-weight: bold;
}

/* 数量控制 */
.count-control {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
}

.count-control button {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
}

.count-control button:hover {
    border-color: #e1251b;
    color: #e1251b;
}

.count-control input {
    width: 50px;
    height: 28px;
    text-align: center;
    border: 1px solid #ddd;
    margin: 0 5px;
}

/* 操作按钮 */
.cart-item .action {
    width: 120px;
    text-align: center;
}

.btn-delete {
    color: #999;
    cursor: pointer;
}

.btn-delete:hover {
    color: #e1251b;
}

/* 购物车底部 */
.cart-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-left {
    display: flex;
    align-items: center;
}

.delete-selected {
    margin-left: 20px;
    color: #999;
}

.delete-selected:hover {
    color: #e1251b;
}

.footer-right {
    display: flex;
    align-items: center;
}

.selected-info {
    margin-right: 20px;
    color: #666;
}

.total-price {
    margin-right: 20px;
    font-size: 16px;
}

.total-price span {
    color: #e1251b;
    font-weight: bold;
    font-size: 20px;
}

.btn-checkout {
    width: 140px;
    height: 48px;
    background: #e1251b;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.btn-checkout:hover {
    opacity: 0.9;
}

/* 为固定底部留出空间 */
.main {
    padding-bottom: 100px;
} 